package com.masterrabbit.gmh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.masterrabbit.gmh.domain.Reviews;
import com.masterrabbit.gmh.mapper.ReviewsMapper;
import com.masterrabbit.gmh.service.ReviewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReviewsServiceImpl extends ServiceImpl<ReviewsMapper, Reviews> implements ReviewsService {
    @Autowired
    private ReviewsMapper reviewsMapper;

    @Override
    public List<Reviews> selectByUserMerchantId(Integer userMerchantId) {
        return reviewsMapper.selectByUserMerchantId(userMerchantId);
    }

}
